package com._5704.website.form;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class ProjectForm {
    private Integer id;
    @NotNull(message = "名称不能为空")
    private String name;

    @NotNull(message = "介绍不能为空")
    private String introduce;

    @NotNull(message = "指导老师不能为空")
    private String instructor;
    /**
     * 类型：0平时项目，1互联网+项目，2大创项目，3其他赛事
     */
    @NotNull(message = "类型不能为空")
    private String type;

    @NotNull(message = "项目成员数量不能为空")
    @Min(value = 1, message = "成员不能小于1")
    private Integer userNum;

    private Object file;

}
